﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;

public partial class ShenBaoGuanLi_QiYeShenHe_YBQY_fengmian : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        HiddenField1.Value = "01000";
    }
    public string DisplayStr()
    {
        YingYongHanShu yyhs = new YingYongHanShu();

        return yyhs.DisplayStrsh("1" + HiddenField1.Value);
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        SqlConnection sqlcon = new SqlConnection();
        sqlcon.ConnectionString = ConfigurationManager.ConnectionStrings["SqlConnectionString"].ConnectionString;
        sqlcon.Open();

        string sqlstr = @"insert into ShenHeYiJian(qiyeid,ShenBaoNianDu,biaohao,ziduanmingcheng,shenheyijian,shifouchuli) values ('"
            + Session["ShenBaoNianDu"] + "' ," + Session["qiyeid"] + ",'" + HiddenField1.Value + "','" + ShenHeNeiRong.Text
            + "','" + ShenHeYiJian.Text+ "',0)";



        SqlCommand sqlcmd = new SqlCommand(sqlstr, sqlcon);
        sqlcmd.ExecuteNonQuery();
        sqlcon.Close();
        GridView1.DataBind();

    }
}